package com.simpleframe.flow;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Process {
	
	private String name;
	
	private Form form;

	private StartStap startStap;
	
	private EndStap endStap;
	
	private List<Node> nodeList;
	
	public Process(String name){
		this.name = name;
	}
	
	public void addNode(Node node){
		if(nodeList==null){
			nodeList = new ArrayList<Node>();
		}
		nodeList.add(node);
	}
	
	public StartStap getStartStap() {
		return startStap;
	}
	
	public void setStartStap(StartStap startStap) {
		this.startStap = startStap;
	}
	
	public void setEndStap(EndStap endStap) {
		this.endStap = endStap;
	}
	
	public void setForm(Form form) {
		this.form = form;
	}
}
